package com.kly.user.enums;

/**
 * @author linqu
 */

public enum LikeEnum {

    NORMAL(0, "NORMAL", "普通"),
    LIKE(1, "LIKE", "喜欢"),
    DO_NOT(2, "DoNot", "不喜欢"),
    LIKE_EACH_OTHER(3, "LIKE EACH OTHER", "互相喜欢"),
    PASS(4, "PASS", "Pass"),

    FLASH_CHAT(5,"flash chat","直接会话")
    ;

    private final int type;

    private final String Value;

    private final String description;


    LikeEnum(int type, String value, String description) {
        this.type = type;
        Value = value;
        this.description = description;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return Value;
    }

    public String getDescription() {
        return description;
    }


    public static LikeEnum fromType(int type) {
        for (LikeEnum userStatus : values()) {
            if (userStatus.getType() == type) {
                return userStatus;
            }
        }
        throw new IllegalArgumentException("Invalid like type: " + type);
    }
}
